package org.nfIt.service.impl;

import org.nfIt.dao.BookDao;
import org.nfIt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * ClossName:UserServiceImpl
 * Pakage:org.nfIt.service.impl
 * Description
 *
 * @Author L
 * @Create 2024/5/3 13:56
 * @Version 2023.1.3
 */
@Service("UserService")
public class UserServiceImpl implements UserService {


    @Autowired
    @Qualifier("BookDao2")
    private BookDao bookDao;

    @Override
    public void say() {
        System.out.println("UserServiceImpl 执行了");
        bookDao.say();
    }
}
